﻿using NUnit.Framework;

namespace AndrewSiemer.KnowledgeExchange.DataAccess.IntegrationTests
{
    [TestFixture]
    public class PostRepositoryTests
    {
        [Test]
        public void GetAllPosts_ReturnsPosts()
        {
            AutoMapperBootStrapper.Initialize();

            PostRepository _postRepository = new PostRepository(new Connection());
            var results = _postRepository.GetAllPosts();

            Assert.IsNotEmpty(results);
        }
    }
}